package com.lai.note.util;

public class CheckNull {

    //单个字符串为空
    public static boolean isNull(String str){
        if(str==null || str.length()==0){
            return true;
        }
        return false;
    }

    //字符串数组为空
    public static boolean isNull(String...re){
        for (int i = 0; i < re.length; i++) {
            if(re[i]==null|| re[i].equals("")){
                System.out.println("空值");
                return true;
            }
        }
        return false;
    }
}
